home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cgraphix / kdrawpt.c < prev    next >
C/C++ Source or Header  |  1986-05-12  |  640b  |  35 lines

  1. /* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
  2. #include    <stdio.h>
  3. #define    EXTERN    extern
  4. #include    <typedef.h>
  5.  
  6. void DrawPoint(xr,yr)
  7. double    xr, yr;
  8. {
  9.     double    x, y;
  10.  
  11.     if (DirectModeGlb)
  12.          DP((int)xr,(int)yr);
  13.     else {
  14.         x = WindowX(xr);
  15.         y = WindowY(yr);
  16.         if (ClippingGlb) {
  17.             if (x >= (X1RefGlb << 3) && x < ((X2RefGlb << 3) + 7)
  18.                 && y >= Y1RefGlb && y <= Y2RefGlb)
  19.                 DP((int)x,(int)y);
  20.         }
  21.         else
  22.             DP((int)x, (int)y);
  23.     }
  24. }
  25.  
  26. int PointDrawn(xr,yr)
  27. double    xr, yr;
  28. {
  29.     if (DirectModeGlb)
  30.         return(PD((int)xr,(int)yr));
  31.     else
  32.         return(PD(WindowX(xr),WindowY(yr)));
  33. }
  34.  
  35.